Optimal. Leaf size=287 \[ -\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}+\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g} \sqrt {d+e x}}{\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \sqrt {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.29, antiderivative size = 287, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {925, 95, 214}
\begin {gather*} \frac {4 c \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}}{\sqrt {f+g x} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )} \sqrt {2 c f-g \left (\sqrt {b^2-4 a c}+b\right )}}-\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {d+e x} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}}{\sqrt {f+g x} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )} \sqrt {2 c f-g \left (b-\sqrt {b^2-4 a c}\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 214
Rule 925
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {d+e x} \sqrt {f+g x} \left (a+b x+c x^2\right )} \, dx &=\int \left (\frac {2 c}{\sqrt {b^2-4 a c} \left (b-\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}}-\frac {2 c}{\sqrt {b^2-4 a c} \left (b+\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}}\right ) \, dx\\ &=\frac {(2 c) \int \frac {1}{\left (b-\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}} \, dx}{\sqrt {b^2-4 a c}}-\frac {(2 c) \int \frac {1}{\left (b+\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {d+e x} \sqrt {f+g x}} \, dx}{\sqrt {b^2-4 a c}}\\ &=\frac {(4 c) \text {Subst}\left (\int \frac {1}{-2 c d+\left (b-\sqrt {b^2-4 a c}\right ) e-\left (-2 c f+\left (b-\sqrt {b^2-4 a c}\right ) g\right ) x^2} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c}}-\frac {(4 c) \text {Subst}\left (\int \frac {1}{-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e-\left (-2 c f+\left (b+\sqrt {b^2-4 a c}\right ) g\right ) x^2} \, dx,x,\frac {\sqrt {d+e x}}{\sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c}}\\ &=-\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}+\frac {4 c \tanh ^{-1}\left (\frac {\sqrt {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g} \sqrt {d+e x}}{\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \sqrt {f+g x}}\right )}{\sqrt {b^2-4 a c} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \sqrt {2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.51, size = 410, normalized size = 1.43 \begin {gather*} \frac {\sqrt {2} \sqrt {c d^2+e (-b d+a e)} \left (\frac {\left (-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c d^2-b d e+a e^2} \sqrt {f+g x}}{\sqrt {-2 c d f+b e f+\sqrt {b^2-4 a c} e f+b d g-\sqrt {b^2-4 a c} d g-2 a e g} \sqrt {d+e x}}\right )}{\sqrt {-2 c d f+b e f+\sqrt {b^2-4 a c} e f+b d g-\sqrt {b^2-4 a c} d g-2 a e g}}+\frac {\left (2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c d^2-b d e+a e^2} \sqrt {f+g x}}{\sqrt {-2 c d f+b e f-\sqrt {b^2-4 a c} e f+b d g+\sqrt {b^2-4 a c} d g-2 a e g} \sqrt {d+e x}}\right )}{\sqrt {-2 c d f+b e f-\sqrt {b^2-4 a c} e f+b d g+\sqrt {b^2-4 a c} d g-2 a e g}}\right )}{\sqrt {b^2-4 a c} \left (-c d^2+e (b d-a e)\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(5506\) vs.
\(2(243)=486\).
time = 0.16, size = 5507, normalized size = 19.19
method | result | size |
default | \(\text {Expression too large to display}\) | \(5507\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {d + e x} \sqrt {f + g x} \left (a + b x + c x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F(-1)]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \text {Hanged} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________